﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>收款匹配记录</title>
    <script src="/js/header.js"></script>
    <link href="/lib/easyui/default/easyui.css" rel="stylesheet" />
    <script src="/lib/date/wdatepicker.js"></script>
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
</head>
<body>
    <div class="data-wrap case" id="container">
        <div class="data-tool clearfix">
            <div class="pull-left form-inline ">
                <a class="btn btn-default btn-sm ReceiptMatchList007 hide gettext" data-modal="/view/receipt/receiptmatchadd.html" data-title="新增" data-width="452" data-height="600">新增</a>
            </div>
            <div class="pull-right">
                <form class="form-inline" id="formSearch">
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">公司名称：</label>
                        <input class="form-control" name="companyName" type="text" autocomplete="off" />
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">商户单号：</label>
                        <input class="form-control" name="clientOrderNo" type="text" autocomplete="off" />
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">客户银行：</label>
                        <input class="form-control" name="clientBankName" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">客户姓名：</label>
                        <input class="form-control" name="clientAccountName" type="text" autocomplete="off" />
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">订单时间：</label>
                        <input id="d421" class="Wdate wd175" name="startTime" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'%y-%M-%d'})" autocomplete="off" />
                        --<input id="d422" class="Wdate wd175 m5_l" name="endTime" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d421\')}'})" autocomplete="off" />
                    </div>
                    <button type="button" class="btn btn-default btn-sm active gettext" id="btnSearch">搜索</button>
                    <button type="button" class="btn btn-default btn-sm gettext" id="AdvSearch">高级搜索</button>
                </form>
            </div>
        </div>
        <!--一高级搜索开始-->
        <div class="AdvSearch">
            <div class="AdvSearchcom collapse">
                <table>
                    <tbody>
                        <tr>
                            <td class="gettext">订单号：</td>
                            <td><input class="form-control" name="orderNo" type="text" autocomplete="off" /></td>
                            <td class="gettext">&nbsp;</td>
                            <td></td>
                        </tr>
                    </tbody>
                </table>
                <div class="AdvSearchfooter t_c">
                    <button id="search" class="btn btn-default btn-sm gettext" type="button">立即搜索</button>
                    <button id="cancel" data-dismiss="modal" class="btn btn-default btn-sm gettext" type="button">取消</button>
                </div>
            </div>
        </div>
        <div class="data-easyui data-scroll">
            <div class="data-view">
                <div class="data-div-view table-responsive">
                    <table class="table" id="easyui-treegrid"></table>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/page/receiptmatch.js?v=201905071643"></script>
    <script type="text/javascript">
        var pageSize = 50;
        $(function () {
            FlashPay.UI.DataAutoHeight();
            setTime();
            doSearch();
            $("body").keydown(function (event) {
                if (event.keyCode == "13") {
                    doSearch();
                }
            });
            $("#btnSearch").click(function () {
                FlashPay.UI.DoSearch();
            });

            FlashPay.UI.Triggerbox({
                btnAdvSearch: '#AdvSearch',
                searchCallBack: function () {
                    window.currentPage = null;
                    doSearch();
                },
                cancelCallBack: function () {

                }
            });
            FlashPay.Util.Ajax({
                type: "POST",
                url: "/DepositMatchRecord/GetDepositMatchRecordAdd",
                data: null,
                success: function (response) {
                    if (response.success) {
                        if (response.data.addPermission == 'ReceiptMatchList007') {
                            $(".ReceiptMatchList007").removeClass("hide")
                        }
                    }
                },
                error: function (e) {
                    FlashPay.UI.Tip_short_warning("操作失败！请查看网络，请重试");
                }
            });
            FlashPay.Util.Language();
        });

        //添加同级节点
        function view(obj) {
            eval(function (p, a, c, k, e, r) { e = String; if (!''.replace(/^/, String)) { while (c--) r[c] = k[c] || c; k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('5.6.7($(0).1("8"),{2:$(0).1("2"),3:$(0).1("3"),4:$(0).1("4")});', 9, 9, 'obj|data|title|width|height|FlashPay|UI|DialogOpen|href'.split('|'), 0, {}))
    }
    function Tip_success(word) {
        FlashPay.UI.Tip_success(word);
    }
    function setTime() {
        let startTime = FlashPay.Util.GetDateStr(-1);
        $("input[name='startTime']").val(startTime + " 00:00:00");
        let endTime = FlashPay.Util.GetDateStr(0);
        $("input[name='endTime']").val(endTime + " 23:59:59");
    }
        function dialogOpen(obj) {
            FlashPay.UI.DialogOpen($(obj).data('href'), {
                title: $(obj).data('title'),
                width: 452,
                height: 550,
            });
        }
    </script>
</body>
</html>